#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main(){
	int fahr = 0;
	float celsius = 0;
	scanf("%d", &fahr);
	celsius = 5 * (fahr - 32) / 9;
	printf("Celsius = %.4f", celsius);
	return 0;
}